/*package com.hy.erp.inventory.service ;

import java.util.List ;

import javax.ejb.Stateless ;

import org.jboss.seam.annotations.Name ;
import org.jboss.seam.annotations.Transactional ;

import com.hy.enterprise.architecture.foundation.ArchitectureFoundationException;
import com.hy.enterprise.framework.service.business.AbstractBusinessService;
import com.hy.erp.inventory.dao.interfaces.IPersonDao;
import com.hy.erp.inventory.dao.interfaces.IPhysiqueCharacterDao;
import com.hy.erp.inventory.pojo.PhysiqueCharacter;
import com.hy.erp.inventory.pojo.interfaces.IPerson;
import com.hy.erp.inventory.pojo.interfaces.IPhysiqueCharacter;
import com.hy.erp.inventory.service.interfaces.IPhysiqueCharacterService;

*//**
 * <ul>
 * <li>开发作者：李冰</li>
 * <li>设计日期：2010-10-8；时间：上午08:56:37</li>
 * <li>类型名称：PhysiqueCharacterService</li>
 * <li>设计目的：体格特征服务方法</li>
 * </ul>
 * <ul>
 * <b>修订编号：</b>
 * <li>修订日期：</li>
 * <li>修订作者：</li>
 * <li>修订原因：</li>
 * <li>修订内容：</li>
 * </ul>
 *//*
@ Name ( "physiqueCharacterService" )
@ Stateless
@ Transactional
public class PhysiqueCharacterService
										extends
										AbstractBusinessService < IPhysiqueCharacter >
																						implements
																						IPhysiqueCharacterService
{
	
	
	private static final long	serialVersionUID	=
														2584965097193836241L ;

	@ Override
	public boolean modifyPhysiqueCharacter (
												IPhysiqueCharacter physiqueCharacter )
	{
		if ( ( null == physiqueCharacter )
				|| ( null == physiqueCharacter
												.getIdentifier ( ) )
				|| ( 0 == physiqueCharacter
											.getIdentifier ( )
											.length ( ) ) )
		{
			return true ;
		}
		else
		{
			IPhysiqueCharacterDao physiqueCharacterDao =
															( IPhysiqueCharacterDao ) this
																							.getDao ( IPhysiqueCharacter.class ) ;
			if ( null == physiqueCharacter )
			{
				throw new ArchitectureFoundationException (
															"修改实体数据时发生错误，所需要修改的实体在数据库中并不存在" ) ;
			}
			return physiqueCharacterDao
										.merge ( physiqueCharacter ) != null ;
		}
	}

	@ Override
	public Integer removePhysiqueCharacter (
												String [ ] physiqueCharacterIds )
	{
		if ( ( null == physiqueCharacterIds )
				|| ( 0 == physiqueCharacterIds.length ) )
		{
			return new Integer (
									0 ) ;
		}
		else
		{
			IPhysiqueCharacterDao physiqueCharacterDao =
															( IPhysiqueCharacterDao ) this
																							.getDao ( IPhysiqueCharacter.class ) ;
			return physiqueCharacterDao
										.remove ( physiqueCharacterIds ) ;
		}
	}

	@ SuppressWarnings ( "unused" )
	@ Override
	public List < IPhysiqueCharacter > getPhysiqueCharacterById (
																	String [ ] Id )
	{
		if((Id.length!=0)||Id!=null)
		{
			IPhysiqueCharacterDao physiqueCharacterDao =
				( IPhysiqueCharacterDao ) this
												.getDao ( IPhysiqueCharacter.class ) ;
			return physiqueCharacterDao.findByIdentifier ( Id );
		}
		return null ;
	}

	@ Override
	public String [ ] addPhysiqueCharacter (
												Object [ ] objects )
	{
		if ( null == objects )
		{
			return null ;
		}
		else
		{
			IPhysiqueCharacterDao physiqueCharacterDao =
															( IPhysiqueCharacterDao ) this
																				.getDao ( IPhysiqueCharacter.class ) ;
			PhysiqueCharacter[] characters=new PhysiqueCharacter[objects.length];
			for ( int i =
							0 ; i < objects.length ; i ++ )
			{
				PhysiqueCharacter character=( PhysiqueCharacter ) objects[i];
				characters[i]=character;
			}
			return physiqueCharacterDao
										.persist ( characters ) ;
		}
	}


	@ Override
	public List < IPhysiqueCharacter > getAllPhysiqueCharacter ( )
	{
		IPhysiqueCharacterDao physiqueCharacterDao =
			( IPhysiqueCharacterDao ) this
								.getDao ( IPhysiqueCharacter.class ) ;
		return physiqueCharacterDao.find ( ) ;
	}

	@ Override
	public String [ ] modifyPhysiqueCharacter (
												Object [ ] objects )
	{
		if (  null == objects ) 
		{
			return null;
		}
		else
		{
			IPhysiqueCharacterDao physiqueCharacterDao =
				( IPhysiqueCharacterDao ) this
									.getDao ( IPhysiqueCharacter.class ) ;
			PhysiqueCharacter[] types=new PhysiqueCharacter[objects.length];
            for(int i=0;i<objects.length;i++)
            {
            	PhysiqueCharacter type=( PhysiqueCharacter ) objects[i];
            	types[i]=type;
            }
			
			return physiqueCharacterDao.merge ( types );
		}
	}
}*/
